<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>HtmlLoader</title>
    <style>
        .box {
            color: red;
        }
        .box1{
            color: #000;
        }
    </style>
</head>

<body>
    <div class="box">
        hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello
        world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello
        world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello
        world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello
        world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello
        world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello
        world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello
        world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello
        world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello
        world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello
        world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello
        world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello
        world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!
    </div>
    <div class="box1">
        hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello
        world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello
        world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello
        world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello
        world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello
        world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello
        world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello
        world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello
        world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello
        world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello
        world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello
        world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello
        world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!hello world!
    </div>
    <button onclick="loadImage()">download</button>
    <script src="dist/html-loader.min.js"></script>
    <script>
        function loadImage() {
            var loader = new HtmlLoader();
            loader.load(document.querySelector('.box1'), '11.png');
            loader.save(document.querySelector('.box1')).then(function(data){console.log(data)});
        }
    </script>
</body>

</html>